
/*
 *   @Studio:CHJY · 源梦科技
 *   @Author:CHJY创幻
 *   @Ide:IntelliJ IDEA
 *   @Creation time:2021/7/12 21:30
 */

import love.yuanmengrobot.thousandlanguagegarden.bus.entity.UserEvents;
import love.yuanmengrobot.thousandlanguagegarden.bus.service.UserEventsService;
import love.yuanmengrobot.thousandlanguagegarden.bus.service.impl.UserEventsServiceImpl;
import love.yuanmengrobot.thousandlanguagegarden.sys.utils.RandomUtils;
import love.yuanmengrobot.zframe.ioc.annotation.Autowired;
import org.junit.Before;
import org.junit.Test;

import java.util.List;

public class testTime {
    @Autowired
    UserEventsService userEventsService;
    @Test
    public void test(){
        System.out.println(RandomUtils.createCarRentId("UA"));
        System.out.println(RandomUtils.createCarRentId("UA"));
        System.out.println(RandomUtils.createCarRentId("UA"));
        System.out.println(RandomUtils.createCarRentId("UA"));
        System.out.println(RandomUtils.createCarRentId("UA"));
        System.out.println(RandomUtils.createCarRentId("UA"));
        System.out.println(RandomUtils.createCarRentId("UA"));

    }

    @Before
    public void init(){
        userEventsService=new UserEventsServiceImpl();
    }
    @Test
    public void test1(){
        List<UserEvents> userEventsList=userEventsService.queryAllByLimit(0,1);
        System.out.println(userEventsList.get(0).getEventtype());
    }
}
